package DesignPattern.StrategyPattern;


public class DivideOpt implements Opt {

    @Override
    public int apply(int a, int b) {
        if(b==0){
            throw  new ArithmeticException("除数不能为0");
        }
       return a/b;
    }
}
